package String;

public class StringBuilderDemo {
    public static void main(String[] args) {
        StringBuilder builder=new StringBuilder();
        StringBuilder builder2=new StringBuilder("abc");
        String str="abc";
        StringBuilder builder3=new StringBuilder(str);
        String str2=builder3.toString();
        String st="好好学习Java";
        StringBuilder builde=new StringBuilder(st);
        builde.append("为了生活");
        System.out.println(builde);
        builde.replace(7,15,"大实际你个龟孙");
        System.out.println(builde);
        String se="大事个龟孙";
        StringBuilder builder1=new StringBuilder(se);
        builder1.append("冲啊，一起打屎你个龟孙");
        System.out.println(builder1);
        builde.delete(0,8);
        System.out.println(builde);
        builde.insert(0,"一拳");
        System.out.println(builde);

    }
}
